package com.fusion.lottery.entity.auth;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModelProperty;

/**
 * 用户
 * @author louis
 *
 */
//@ApiModel(value="用户对象",description="用户对象实体")
public class User implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(hidden=true)
	private String id;//用户id
	
	@ApiModelProperty(value="昵称")
	@Size(max=20)
	private String name;//昵称
	
	@ApiModelProperty(value="手机号")
	@NotNull
	private String phone;//手机号
	
	@ApiModelProperty(value="密码")
	private String password;//密码
	
	@ApiModelProperty(value="头像")
	private String photo;
	
	@ApiModelProperty(hidden=true)
	private String salt;//加密盐值
	
	@ApiModelProperty(hidden=true)
	private long createTime;//注册时间
	
	@ApiModelProperty(hidden=true)
	private String type;//类型
	
	@ApiModelProperty(hidden=true)
	private String status;//状态
	
	@ApiModelProperty(hidden=true)
	private String openId;//状态

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

}
